﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.DesignServer.Data
{
    [MessageContract]
    public class ServiceResult
    {
        [MessageBodyMember]
        public bool IsSuccess { get; set; }

        [MessageBodyMember]
        public string Message { get; set; }

        [MessageBodyMember]
        public int ErrorCode { get; set; }
        public ServiceResult()
        {
        }

        public ServiceResult(bool isSuccess, int errorCode, string message)
        {
            this.IsSuccess = isSuccess;
            this.ErrorCode = errorCode;
            this.Message = message;
        }
    }
}
